from api.ihrm_login_api import IhrmLogin


def get_header():
    json_data = {"mobile": "13800000002", "password": "123456"}
    resp = IhrmLogin.login(json_data)
    token = "Bearer " + resp.json().get("data")
    header = {"Authorization": token}
    return header


if __name__ == '__main__':
    get_header()

